package com.itheima.controller;

import com.itheima.dao.AccountDao;
import com.itheima.service.AccountService;
import com.mchange.v2.c3p0.ComboPooledDataSource;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Controller;


public class AccountController {

    public static void main(String[] args) {
        //创建spring容器
        ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
        AccountService service = app.getBean(AccountService.class);
        service.transfer("lucy","tom",800);


    }

}
